import { http } from '@/utils/http/axios';

/**
 * @description: 获取列表
 */
export function list(params) {
    return http.request({
        url: '/advert/list',
        method: 'GET',
        params
    });
}

/**
 * @description: 详情
 */
export function info(params) {
    return http.request({
        url: '/advert/info',
        method: 'GET',
        params
    });
}

/**
 * 新增
 */
export function add(params) {
    return http.request({
        url: '/advert/add',
        method: 'POST',
        params
    })
}

/**
 * 编辑
 */
export function edit(params) {
    return http.request({
        url: '/advert/edit',
        method: 'POST',
        params
    })
}

/**
 * 删除
 */
export function Del(params) {
    return http.request({
        url: '/advert/delete',
        method: 'POST',
        params
    })
}

/**
 * @description: 获取列表
 */
export function navlist(params) {
    return http.request({
        url: '/advert/navlist',
        method: 'GET',
        params
    });
}

/**
 * @description: 详情
 */
export function navinfo(params) {
    return http.request({
        url: '/advert/navinfo',
        method: 'GET',
        params
    });
}

/**
 * 新增
 */
export function navadd(params) {
    return http.request({
        url: '/advert/navadd',
        method: 'POST',
        params
    })
}

/**
 * 编辑
 */
export function navedit(params) {
    return http.request({
        url: '/advert/navedit',
        method: 'POST',
        params
    })
}

/**
 * 删除
 */
export function navDel(params) {
    return http.request({
        url: '/advert/navdelete',
        method: 'POST',
        params
    })
}

/**
 * @description: 获取列表
 */
export function flowlist(params) {
    return http.request({
        url: '/advert/flowlist',
        method: 'GET',
        params
    });
}

/**
 * @description: 详情
 */
export function flowinfo(params) {
    return http.request({
        url: '/advert/flowinfo',
        method: 'GET',
        params
    });
}

/**
 * 新增
 */
export function flowadd(params) {
    return http.request({
        url: '/advert/flowadd',
        method: 'POST',
        params
    })
}

/**
 * 编辑
 */
export function flowedit(params) {
    return http.request({
        url: '/advert/flowedit',
        method: 'POST',
        params
    })
}

/**
 * 删除
 */
export function flowDel(params) {
    return http.request({
        url: '/advert/flowdelete',
        method: 'POST',
        params
    })
}
